package com.base2.webshop.server.locators;

import org.springframework.context.ApplicationContext;

import com.base2.webshop.util.ApplicationContextProvider;
import com.google.gwt.requestfactory.shared.ServiceLocator;

public class AbstractServiceLocator implements ServiceLocator {

	ApplicationContext applicationContext;

	@Override
	public Object getInstance(Class<?> clazz) {
		return ApplicationContextProvider.getApplicationContext().getBean(clazz);
	}

}
